﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ModifyPassword.aspx.cs" Inherits="ZLCMS.Web.Wap.Member.ModifyPassword"  MasterPageFile="~/Wap/Shop/ShopSite.Master" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">    
    <title>修改密码</title>
    <link rel="stylesheet" href="/wap/lib/validator-0.7.0/css/jquery.validator.css" />
    <script type="text/javascript" src="/wap/lib/validator-0.7.0/jquery.validator.js"></script>
    <script type="text/javascript" src="/wap/lib/validator-0.7.0/local/zh_CN.js"></script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="pages" runat="server">
    <div data-role="page" id="mypage">
       
        <div role="main" class="ui-content">
            <!--s login-->
            <div id="login">
        	    <form id="Form1" command="Member.ModifyPassword">
        <%if (!string.IsNullOrEmpty(CurrentMember.Password))
          { %>
                    <div class="loginLIST">
                	    <div class="left"><img src="/wap/shop/images/icon_password.png"></div>
                        <div class="right"><input type="password" name="OldPassword" placeholder="原密码" command-param='OldPassword'
                            data-rule="原密码: required;"></div>
                    </div>
                    <div class="loginLIST">
                	    <div class="left"><img src="/wap/shop/images/icon_password.png"></div>
                        <div class="right"><input type="password" name="NewPassword" placeholder="新密码" command-param='NewPassword'
                            data-rule="新密码: required;"></div>
                    </div>
        <%}
          else
          { %>
                    <div class="loginLIST">
                	    <div class="left"><img src="/wap/shop/images/icon_password.png"></div>
                        <div class="right"><input type="password" name="NewPassword"" placeholder="密码" command-param='NewPassword'
                            data-rule="密码: required;"></div>
                    </div>
        <%} %>
                    <div class="loginLIST">
                	    <div class="left"><img src="/wap/shop/images/icon_password1.png"></div>
                        <div class="right"><input type="password" name="NewPassword2" placeholder="确认密码"
                            data-rule="required;match(NewPassword)"></div>
                    </div>
                    
                
                    <div class="button">
                	    <a href="javascript:void(0);" data-role="button" data-theme="o" data-shadow="false" onclick="executeFormCommonCommand('Form1', submitOk)">确 定</a>
                    </div>

                </form>
            </div>
            <!--s login-->
  
        </div>
    </div>


    <!-- /content -->
    <script type="text/javascript">
        function submitOk(result) {
            showTips("设置成功", 500, function () {
                location.href = 'Setting.aspx';
            });

        }

    </script>
</asp:Content>
